package com.dlc.shop.user.common.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.dlc.shop.user.common.model.UserLevelLang;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 会员等级
 *
 * @author LHD
 * @date 2020-02-26 16:03:14
 */
@Data
public class LevelDetailDto implements Serializable{
    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    @Schema(description = "主键" )
    private Long id;
    /**
     * 等级
     */
    @Schema(description = "等级" )
    private Integer level;
    /**
     * 等级名称
     */
    @Schema(description = "等级名称" )
    private String levelName;
    /**
     * 等级条件 0 普通会员 1 付费会员
     */
    @Schema(description = "等级条件 0 普通会员 1 付费会员" )
    private Integer levelType;
    /**
     * 所需成长值
     */
    @Schema(description = "所需成长值" )
    private Integer needGrowth;
    /**
     * 付费会员价格
     */
    @Schema(description = "付费会员价格" )
    private Double needAmount;
    /**
     * 有效期（天）
     */
    @Schema(description = "等级" )
    private Integer term;
    /**
     * 期数类型
     */
    @Schema(description = "等级" )
    private Integer termType;
    /**
     * 背景图片
     */
    @Schema(description = "等级" )
    private String img;

    @Schema(description = "招募状态（0：停止招募，1：招募中）" )
    private Integer recruitStatus;

    /**
     *  权益数组
     */
    @TableField(exist = false)
    @Schema(description = "权益数组" )
    private List<UserRightsDto> userRights;

    @TableField(exist = false)
    @Schema(description = "等级名称国际化")
    private List<UserLevelLang> userLevelLangList;

}
